package com.hyh.eblog.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hyh.eblog.entity.UserMessage;
import com.hyh.eblog.mapper.UserMessageMapper;
import com.hyh.eblog.service.UserMessageService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.p6spy.engine.spy.appender.MessageFormattingStrategy;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Summerday
 * @since 2020-10-19
 */
@Service
public class UserMessageServiceImpl extends ServiceImpl<UserMessageMapper, UserMessage> implements UserMessageService {

    @Resource
    UserMessageMapper userMessageMapper;

    @Override
    public Page paging(Page page, QueryWrapper<UserMessage> wrapper) {

        return userMessageMapper.selectMessages(page,wrapper);
    }
}
